package com.sonicvision.resourcetracker.employee;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Controller;

   @Controller
   @Entity
   @Table(name = "EMPLOYEE_EXPERIENCE")
   @SequenceGenerator(name="employeeexperienceIdGenerator",sequenceName="employee_experience_id_seq",allocationSize=1)
   public class EmployeeExperience {
	
	@Id
	@Column
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="employeeexperienceIdGenerator")
	private int employee_Experience_Id;
	
	@Column
	private String client;
	
	@Column
	private String company;
	
	@Column
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date start_date;
	
	@Column
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date end_date;
	
	@Column
	private String role;
	
	@Column
	private String technologies_used;
	
	@Column
	private String description;
	
	@Column
	private String responsibilities;
	
	public EmployeeExperience(){
		super();
	}
	
	
	public EmployeeExperience(int employee_Experience_Id, String client,
			String company, Date start_date, Date end_date, String role,
			String technologies_used, String description, String responsibilities) {
		super();
		this.employee_Experience_Id = employee_Experience_Id;
		this.client = client;
		this.company = company;
		this.start_date = start_date;
		this.end_date = end_date;
		this.role = role;
		this.technologies_used = technologies_used;
		this.description = description;
		this.responsibilities = responsibilities;
	}


	public int getEmployee_Experience_Id() {
		return employee_Experience_Id;
	}


	public String getClient() {
		return client;
	}


	public String getCompany() {
		return company;
	}


	public Date getStart_date() {
		return start_date;
	}


	public Date getEnd_date() {
		return end_date;
	}


	public String getRole() {
		return role;
	}


	public String getTechnologies_used() {
		return technologies_used;
	}


	public String getDescription() {
		return description;
	}


	public String getResponsibilities() {
		return responsibilities;
	}


	public void setEmployee_Experience_Id(int employee_Experience_Id) {
		this.employee_Experience_Id = employee_Experience_Id;
	}


	public void setClient(String client) {
		this.client = client;
	}


	public void setCompany(String company) {
		this.company = company;
	}


	public void setStart_date(Date start_date) {
		this.start_date = start_date;
	}


	public void setEnd_date(Date end_date) {
		this.end_date = end_date;
	}


	public void setRole(String role) {
		this.role = role;
	}


	public void setTechnologies_used(String technologies_used) {
		this.technologies_used = technologies_used;
	}


	public void setDescription(String description) {
		this.description = description;
	}


	public void setResponsibilities(String responsibilities) {
		this.responsibilities = responsibilities;
	}
	
	
	
}
